<!-- 内容 -->
<div style="margin:10px"></div>
<div class="content">
    <form id="form" class="easyui-form" method="POST" data-options="novalidate:true">
        <input type='hidden' name="id" id="id"/>
        <table cellpadding="5">
            <tr>
                <td width="20%" align="right">进程名称：</td>
                <td width="30%"><input class="easyui-textbox" name="name" data-options="required:true" value="java"/>
                </td>
                <td width="15%" align="right">进程类型：</td>
                <td width="30%"><input class="easyui-textbox" name="type" data-options="required:true" value="jetty应用"/>
                </td>
            </tr>
            <tr>
                <td align="right">所属机器：</td>
                <td>
                    <input class="easyui-combobox"
                           name="serverId"
                           editable="false"
                           data-options="required:true,
                           url:'/rest/admin/servers',
                           method:'get',
                           valueField:'id',
                           textField:'serverCode',
                           panelHeight:'auto'">
                </td>
                <td align="right">所属模块：</td>
                <td>
                    <input class="easyui-combobox"
                           name="moudleId"
                           editable="false"
                           data-options="required:true,
                           url:'/rest/admin/modules',
                           method:'get',
                           valueField:'id',
                           textField:'name',
                           panelHeight:'auto'">
                </td>
            </tr>
            <tr>
                <td align="right">进程状态：</td>
                <td>
                    <input class="easyui-combobox"
                           name="status"
                           editable="false"
                           value="P1"
                           data-options="required:true,
                           url:'/rest/admin/process_statuses',
                           method:'get',
                           valueField:'value',
                           textField:'text',
                           panelHeight:'auto'">
                </td>
                <td align="right">关键字：</td>
                <td><input class="easyui-textbox" name="keyword" data-options="required:true" value="java"/></td>
            </tr>
            <tr>
                <td align="right">存放路径：</td>
                <td><input class="easyui-textbox" name="path" data-options="required:true"
                           value="/kingdee/jetty/domains/"/></td>
                <td align="right">更新时间：</td>
                <td><input class="easyui-datetimebox" name="updateTime" data-options="required:true"
                           editable="false"/></td>
            </tr>
            <tr>
                <td align="right">启动脚本：</td>
                <td><input class="easyui-textbox" name="startScript" data-options="required:true"
                           value="$main_path$/bin/start.sh"/></td>
                <td align="right">停止脚本：</td>
                <td><input class="easyui-textbox" name="stopScript" data-options="required:true"
                           value="$main_path$/bin/stop.sh"/></td>
            </tr>

            <tr>
                <td align="right">主端口：</td>
                <td><input class="easyui-numberbox" name="mainPort" value="8080" data-options="min:1,max:65535"/></td>
                <td align="right">主端口类型：</td>
                <td>
                    <input class="easyui-combobox"
                           name="mainPortType"
                           editable="false"
                           value="TCP"
                           data-options="required:true,
                           url:'/rest/admin/process_port_types',
                           method:'get',
                           valueField:'value',
                           textField:'text',
                           panelHeight:'auto'">
                </td>
            </tr>


            <tr>
                <td align="right">JMX端口：</td>
                <td><input class="easyui-numberbox" name="jmxPort" value="1099"
                           data-options="required:true,min:1,max:65535"/></td>
                <td align="right">其它端口：</td>
                <td><input class="easyui-numberbox" name="otherPort" value="0" data-options="min:0,max:65535"/></td>
            </tr>


            <tr>
                <td align="right">容器版本：</td>
                <td><input class="easyui-textbox" name="containerVersion" data-options="required:true" value="0"/>
                </td>
                <td align="right">代码版本：</td>
                <td><input class="easyui-textbox" name="codeVersion" data-options="required:true" value="0"/></td>
            </tr>
        </table>
    </form>
</div>

<!-- 弹出框按钮 -->
<div class="windowButton" style="padding:10px">
    <a id="save" class="easyui-linkbutton my-dialog-button" plain="true" icon="icon-save" onclick="_submit()"
       href="javascript:void(0)">保存</a>
    <a id="cancel" class="easyui-linkbutton my-dialog-button" plain="true" icon="icon-cancel"
       href="javascript:void(0)">取消</a>
</div>

<script>
    // $('#language').combobox('reload', 'combobox_data1.json')
    $(function () {
        $("#cancel").on("click", function () {
            $childwin().window("close");
        });
    })

    _get();

</script>